package org.zjt.auth.MQ.rabbitmq;

import org.apache.log4j.Logger;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//@Component
public class RabbitMQMsgListener {
	
	private static final Logger log=Logger.getLogger(RabbitMQMsgListener.class);

	@RabbitListener(queues="rabbitmq-test")
	public void receiveMsg(String msg){
		log.info("RabbitMQ接受到的信息"+msg);
	}

}
